package weiy.top.modules.coupon.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: sms_coupon
 * @Author: weihancheng
 * @Date:   2021-12-16
 * @Version: V1.0
 */
@Data
@TableName("sms_coupon")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sms_coupon对象", description="sms_coupon")
public class SmsCoupon implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.Integer id;
	/**优惠卷类型[0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券]*/
	@Excel(name = "优惠卷类型[0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券]", width = 15)
    @ApiModelProperty(value = "优惠卷类型[0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券]")
    private java.lang.Integer couponType;
	/**优惠券图片*/
	@Excel(name = "优惠券图片", width = 15)
    @ApiModelProperty(value = "优惠券图片")
    private java.lang.String couponImg;
	/**优惠卷名字*/
	@Excel(name = "优惠卷名字", width = 15)
    @ApiModelProperty(value = "优惠卷名字")
    private java.lang.String couponName;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Integer num;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal amount;
	/**每人限领张数*/
	@Excel(name = "每人限领张数", width = 15)
    @ApiModelProperty(value = "每人限领张数")
    private java.lang.Integer perLimit;
	/**使用门槛*/
	@Excel(name = "使用门槛", width = 15)
    @ApiModelProperty(value = "使用门槛")
    private java.math.BigDecimal minPoint;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private java.util.Date startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private java.util.Date endTime;
	/**使用类型[0->全场通用；1->指定分类；2->指定商品]*/
	@Excel(name = "使用类型[0->全场通用；1->指定分类；2->指定商品]", width = 15)
    @ApiModelProperty(value = "使用类型[0->全场通用；1->指定分类；2->指定商品]")
    private java.lang.Integer useType;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String note;
	/**发行数量*/
	@Excel(name = "发行数量", width = 15)
    @ApiModelProperty(value = "发行数量")
    private java.lang.Integer publishCount;
	/**已使用数量*/
	@Excel(name = "已使用数量", width = 15)
    @ApiModelProperty(value = "已使用数量")
    private java.lang.Integer useCount;
	/**领取数量*/
	@Excel(name = "领取数量", width = 15)
    @ApiModelProperty(value = "领取数量")
    private java.lang.Integer receiveCount;
	/**可以领取的开始日期*/
	@Excel(name = "可以领取的开始日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "可以领取的开始日期")
    private java.util.Date enableStartTime;
	/**可以领取的结束日期*/
	@Excel(name = "可以领取的结束日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "可以领取的结束日期")
    private java.util.Date enableEndTime;
	/**优惠码*/
	@Excel(name = "优惠码", width = 15)
    @ApiModelProperty(value = "优惠码")
    private java.lang.String code;
	/**可以领取的会员等级[0->不限等级，其他-对应等级]*/
	@Excel(name = "可以领取的会员等级[0->不限等级，其他-对应等级]", width = 15)
    @ApiModelProperty(value = "可以领取的会员等级[0->不限等级，其他-对应等级]")
    private java.lang.Integer memberLevel;
	/**发布状态[0-未发布，1-已发布]*/
	@Excel(name = "发布状态[0-未发布，1-已发布]", width = 15)
    @ApiModelProperty(value = "发布状态[0-未发布，1-已发布]")
    private java.lang.Integer publish;
}
